package com.jt.spring;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

//1、Aop需要被容器管理
@Component
//2、标识该类为AOP切面
@Aspect

public class SpringAOP {

        //1、定义通知
        @Before("bean(deptServiceImpl)")
        public void before(){
            System.out.println("我是befor通知");
        }
    }

